import datetime

def get_dist(a,b):
        dist = 0
	
	###过滤快乐星期天
	if len(a) > 7:
		a.pop()
	if len(b) > 7:
		b.pop()
	###过滤快乐星期天
	
	if a.pop() == b.pop():
		dist+=1
        for i in a:
                for  j in b:
                        if i==j:
                                dist+=1
        return dist



start = datetime.datetime.now()

with open('t.csv','w+') as t:
#	for i in range(12759183360):
#		t.write('1	2017065	2017-06-06	02,05,08,10,12,21\\07')
#		t.write('\n')
#

	for a in range(1,34):
		for b in range(1,33):
			for c in range(1,32):
				for d in range(1,31):
					for e in range(1,30):
						for f in range(1,29):
							for g in range(1,16):
						t.write('1      2017065 2017-06-06      02,05,08,10,12,21\\07')
						t.write('\n')
endtime = datetime.datetime.now()

